<html>
<head></head>
<body>

</body>
<script src="http://cdn.bootcss.com/socket.io/1.3.6/socket.io.min.js"></script>
<script>
    var socket = io.connect('http://wxshop.guoran100.com/');
    socket.on('connect', function () {
        //alert('connect');

        socket.on('message', function(message) {
            console.log(message);
        });
        socket.on('aaa', function(message) {
            console.log(message);
        });
        socket.on('sss', function(message) {
            console.log('sss'+message);
        });
        socket.on('disconnect', function() {
            alert('disconnect');
        });
    });

    socket.send('aaa');
</script>
</html>